import requests
from config.env_config import host




class BaseAPI:

    def get(self, endpoint, params=None):
        url = f"{host}{endpoint}"
        return requests.get(url, params=params)

    def post(self, endpoint, data=None):
        url = f"{host}{endpoint}"
        print(url)
        return requests.post(url, json=data)
    
